
.container {
    height: 100vh;
    overflow-y: auto;
}

.content-wrapper {
    display: flex;
    width: 100%;
    box-sizing: border-box; /* 确保padding和border包含在宽度计算中 */
}

.main-content {
    flex: 1;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    margin: 20px;
    box-sizing: border-box; /* 确保padding和border包含在宽度计算中 */
    overflow-y: auto; /* 确保内部内容可滚动 */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #EAC2C4;
    padding: 10px 20px;
    top: 0;
    width: 100%;
    z-index: 1000; /* 确保导航栏位于其他内容之上 */
}

.navbar-left,
.navbar-right,
.navbar-center {
    display: flex;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    transition: color 0.3s, background-color 0.3s, border-radius 0.3s;
}

.navbar a:hover {
    color: white;
    background-color: #d1a7a7;
    border-radius: 15px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    margin-top: 20px;
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #d1a7a7;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
}

.dropdown-content a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.dropdown-content a i {
    margin-right: 5px;
}

.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.dropdown:hover .dropbtn {
    color: white;
    background-color: #d1a7a7;
    border-radius: 15px;
}

.dropbtn {
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    font-weight: bold;
    letter-spacing: 5px;
}

.intro-container {
     padding: 2rem;
     background-color: #EAC2C4;
 }

.tags {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 10px 0 1rem 2rem;
    letter-spacing: 0.1rem;
}

.tag {
    background-color: #fff;
    color: #d37f7f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.9;
}

.tag.no-background {
    background-color: transparent;
    color: #fff;
    font-size: 1rem;
    opacity: 0.7;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-align: left;
    margin-left: 2rem;
    letter-spacing: 0.1rem;
    max-width: 40ch;
    word-wrap: break-word;
}

.info {
    display: flex;
    justify-content: left;
    gap: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.8;
    margin-left: 2rem;
    margin-top: 20px;
}

.info div {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.info i {
    margin-right: 0.5rem;
}
.sidebar {
    width: 300px;
    padding: 1rem;
    box-sizing: border-box;
}

.profile {
    margin-top: 30px;
    background: linear-gradient(135deg, #7b1e39, #4a3f8c, #f7e8d3);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
    margin-bottom: 1rem;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.profile h3 {
    margin: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile p {
    margin: 0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.profile .social-links a {
    color: #ffffff;
    margin: 0 0.5rem;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.profile .social-links a:hover {
    color: #d1a7a7;
}

.announcement {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sticky-menu {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sticky-menu h4 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sticky-menu h4::before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

.menu {
    list-style-type: none;
    padding: 0;
}

.menu li {
    margin: 0.5rem 0;
}

.menu li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid transparent;
}

.menu li a:hover {
    background-color: #f0f0f0;
    border-color: #d1a7a7;
}
.section {
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 1rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section ul {
    list-style-type: none;
    padding: 0;
}

.section ul li {
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d37f7f;
}
.comment-container {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .comment-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #d1a7a7;
    display: inline-block;
    padding-bottom: 0.5rem;
  }
  
  .comments {
    margin-top: 1rem;
  }
  
  .comments ul {
    list-style-type: none;
    padding: 0;
  }
  
  .comment-item {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
  }
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
  }
  
  .comment-header .comment-username {
    font-weight: bold;
    color: #d37f7f;
  }
  
  .comment-header .comment-date {
    font-size: 0.8rem;
    color: #aaa;
  }
  
  .comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }
  
  .comment-divider {
    border: none;
    border-top: 1px solid #eee;
    margin-top: 1rem;
  }
  